# _*_ coding: utf-8 _*_
"""
Time:     2024/9/19
Author:   2051261
File:     demo.py
"""
# 将定义的 Model 和 Node 添加到 ../__init.py 下的 map 中

from __future__ import annotations
import typing as t

from schematics import Model

from extractor.flow.base_node_flow import BaseNodeFlow

if t.TYPE_CHECKING:
    from extractor.flow.node_model.log_node import RecordLog


class MyModel(Model):
    """
    自定义的参数
    """
    pass


class MyNode(BaseNodeFlow):

    def __call__(self, record_log: RecordLog, context: t.Dict[str, t.Any], cache, record: t.DefaultDict, kwargs=None) -> \
            (t.Dict[str, t.Any] | t.Iterator[t.Dict[str, t.Any]] | None):
        pass
